package com.youxin.busfoundation.db.redis;

import java.text.ParseException;

import com.youxin.busfoundation.config.MonitorRedisConfig;

/**
 * 监控Redis服务
 * @author yingde.cao
 *
 */
public class MonitorRedisCluster {
	
	private static Object lockObj=new Object();
	private MonitorRedisConfig monitorRedisConfig;
	
	public MonitorRedisCluster(MonitorRedisConfig monitorRedisConfig)
	{
		this.monitorRedisConfig=monitorRedisConfig;
	}
	
	private static MonitorRedisCluster instance=null;
	public static void initConfig(MonitorRedisConfig monitorRedisConfig) throws ParseException
	{
		if(instance!=null){
			return;
		}
		synchronized (lockObj) {
			if(instance==null){
				instance=new MonitorRedisCluster(monitorRedisConfig);
			}
		}
	}
	
}
